package com.yjt.javatest.entity;

import com.baomidou.mybatisplus.annotation.IEnum;

public enum UserType implements IEnum<Integer> {
    TEACHER(1,"教师"),STUDENT(2,"学生"),ADMIN(3,"管理员");
    private final int value;
    private final String name;
    UserType(int value, String name) {
        this.value = value;
        this.name = name;
    }
    public String getName() {
        return this.name;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
}
